package com.oss.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Author Tanyu
 * @Date 2020/6/4 14:25
 * @Description 阿里云oss的配置类
 * @Version 1.0
 */
@Component
@PropertySource(value = "classpath:application.properties")
@ConfigurationProperties(prefix = "aliyun.oss")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class AliyunOSSConfig {
  private String bucketname;
  private String endpoint;
  private String keyid;
  private String keysecret;
  private String filehost;
}
